<template>
    <div>
        <p>{{nextYear}}</p>
    </div>
</template>

<script>
    import Student from './components/Student.vue'
    export default {
        components:{Student},
        data(){
            return{
                nextYear:"我是一个兵,来自大本营"
            }
        },
        methods: {
            Predict:function(){
                $("#demandRate").click(function(){
                    //本年产能
                    var production  = $("#production").val();
                    //破产组产能
                    var failProduction = $("#failProduction").val();
                    //行业库存
                    var inventory = $("#inventory").val();
                    //破产组库存
                    var failInventory = $("#failInventory").val();
                    //行业总需求
                    var demand = $("#demand").val();
                    //行业默认组数量
                    var missNumber = $("#missNumber").val();
                    //行业打款组
                    var styleNumber = $("#styleNumber").val();
                    //行业打质组
                    var productionNumber = $("#productionNumber").val();

                    this.nextYear= ((production - inventory)*1.12 + failProduction - failInventory)/demand;
                })
            },
        },
    }
</script>

<style>

</style>


